home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000021_news@newsmaster….columbia.edu _Fri Dec 18 10:36:20 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA10145
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 18 Dec 1998 10:36:20 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA24916
  7.     for kermit.misc@watsun; Fri, 18 Dec 1998 10:36:19 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: receiving straight binary
  12. Date: 18 Dec 1998 15:36:17 GMT
  13. Organization: Columbia University
  14. Lines: 31
  15. Message-ID: <75dsph$4i1$1@apakabar.cc.columbia.edu>
  16. References: <gerlachF4602I.IDE@netcom.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:9653
  19.  
  20. In article <gerlachF4602I.IDE@netcom.com>,
  21. Matthew H. Gerlach <gerlach@netcom.com> wrote:
  22. : I have a device that spits out raw binary serial data, and I want it to go
  23. : to a harddrive.  I'm using 6.1.193 Beta.05 on a Solaris machine.  What I
  24. : did was write a small program that reads stdin and writes it to a file.  I
  25. : then used the ckermit "redirect" command to run my program attaching the
  26. : serial input stream to my program's stdin.
  27. : I'm sure there is a better way to do this, but I'm not sure what that better
  28. : way is.  I have written scripts using the "input" command that does
  29. : the same thing for ascii text, but I'm not sure it would work too well
  30. : in the this case.
  31. There's no reason why it shouldn't:
  32.  
  33.   set line /dev/tty0 ; or whatever
  34.   set speed 19200    ; or whatever
  35.   set parity none
  36.   set flow rts/cts   ; or none -- not xon/xoff
  37.   set session-log binary
  38.   set terminal byte 8
  39.   set terminal character-set transparent
  40.   log session
  41.   input 9999 termination-sequence
  42.   close session
  43.  
  44. The trick is to know when to stop logging, but you must have had some
  45. criterion in your stdin/stdout program so you should be able to use the
  46. same one here.
  47.  
  48. - Frank